home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1987 / Nov 87 / Modeless Dialogs 11⁄12 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.7 KB  |  50 lines  |  [TEXT/GEOL]

  1. Item    8099524                         12-Nov-87        09:23
  2.  
  3. From:   V0344                           Siemens Gammasonics, Henk Koopmans
  4.  
  5. To:     MACAPP$                         MacApp Interest List
  6.  
  7. Sub:    Modeless Dialogs
  8.  
  9.  
  10. First, the background :
  11.  
  12.        myWindow:    TWindow
  13.        myView:    TDialogView
  14.  
  15.     resource 'DLOG' (1221) {
  16.       {40, 5, 450, 325},
  17.    zoomDocProc,
  18.    invisible,
  19.       goAway,
  20.    0x0,
  21.       1221,
  22.       "<<<>>>"};
  23.  
  24. I'm trying to develop a modeless dialog for a Mac II 12inch screen.
  25. Keeping in mind that this program may occasionally be run on the original
  26. smaller screen, I intended to use the global routine AdaptToScreen.
  27.  
  28. If I use AdaptToScreen with the rectangle size declared in my resource as
  29. shown above myWindow comes up bigger than myView. If I reduce the size
  30. declared in my resource so that it would fit the original smaller screen
  31. then myWindow comes up in the correct size, but myView has been truncated
  32. to the size declared in the resource. Thus myWindow still is bigger than
  33. myView plus I have lost some of myView.
  34.  
  35. Let's remove AdaptToScreen, and look at my second problem.
  36. When I bring up myWindow to full View size the scrollbars are activated.
  37. This is very confusing for the user, since there is nothing to scroll to
  38. as the entire view is displayed.
  39.  
  40. So the help I'm really asking for is advice (and perhaps a few pointers):
  41. Should I start messing with overriding TFrame methods, etc.? Or should I
  42. abandon the UDialog unit entirely? Or am I leaving something out?
  43.  
  44. As a variety of modeless dialogs will be 50% of my application's user
  45. interface, I'm concerned about what sorts of things will be revised for
  46. dialogs in MacApp 2.0. Are there any programming tips I should follow now?
  47.  
  48. Edith Wickliff, Siemens Gammasonics
  49.  
  50.